package com.gadgets.framework.thread.hook;

import com.gadgets.framework.thread.event.GadgetsThreadTaskEvent;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

/**
 * @author UncleXiu
 * @version V1.0.0
 * @data 2020-09-13
 *
 */
public abstract class ThreadHook<T extends GadgetsThreadTaskEvent>{

    protected final Logger logger = LoggerFactory.getLogger(this.getClass());
    /**
     * 模块号
     */
    private String moduelNo;
    /**
     * 任务执行钩子
     * @param event     事件信息
     */
    public abstract void excuteHook(T event);

    public String getModuelNo() {
        return moduelNo;
    }

    public void setModuelNo(String moduelNo) {
        this.moduelNo = moduelNo;
    }

}
